package com.bianmaba.spring.security.database;

import com.bianmaba.spring.security.basic.BasicSecurityProperties;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "security")
@ConditionalOnMissingBean(DatabaseSecurityProperties.class)
public class DatabaseSecurityProperties extends BasicSecurityProperties {
    private long resourceCacheTime = 5 * 60 * 1000;//缓存5分钟

    public long getResourceCacheTime() {
        return resourceCacheTime;
    }

    public void setResourceCacheTime(long resourceCacheTime) {
        this.resourceCacheTime = resourceCacheTime;
    }
}
